package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserInfoExt;
import com.ecoolex.ying.space.entity.UserInfoExtExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserInfoExtMapper {
    long countByExample(UserInfoExtExample example);

    int deleteByExample(UserInfoExtExample example);

    int deleteByPrimaryKey(Integer userId);

    int insert(UserInfoExt record);

    int insertSelective(@Param("record") UserInfoExt record, @Param("selective") UserInfoExt.Column ... selective);

    UserInfoExt selectOneByExample(UserInfoExtExample example);

    List<UserInfoExt> selectByExample(UserInfoExtExample example);

    UserInfoExt selectByPrimaryKey(Integer userId);

    UserInfoExt selectByPrimaryKeyWithLogicalDelete(@Param("userId") Integer userId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserInfoExt record, @Param("example") UserInfoExtExample example, @Param("selective") UserInfoExt.Column ... selective);

    int updateByExample(@Param("record") UserInfoExt record, @Param("example") UserInfoExtExample example);

    int updateByPrimaryKeySelective(@Param("record") UserInfoExt record, @Param("selective") UserInfoExt.Column ... selective);

    int updateByPrimaryKey(UserInfoExt record);

    int batchInsert(@Param("list") List<UserInfoExt> list);

    int batchInsertSelective(@Param("list") List<UserInfoExt> list, @Param("selective") UserInfoExt.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserInfoExtExample example);

    int logicalDeleteByPrimaryKey(Integer userId);
}